<template>
    <el-pagination :current-page="current" :total="total" :page-size="count" :page-sizes="[4, 10, 20, 30, 40, 50]"
        style="padding: 20px 0;" layout="prev, pager, next, jumper, ->, sizes, total" @current-change="getPurchaseForm"
        @size-change="handleSizeChange" />
</template>
  
<script>

export default {
    name: "Pagination",
    props: ["title"],
    methodsL: {
        // 处理pageSize发生改变的监听回调
        handleSizeChange(pageSize) {
            this.count = pageSize
            if (this.searchFormFlag) {
                this.search()
            } else {
                this.getPurchaseForm()
            }
        },
    }
};

</script>
  
<style scoped></style>
  